package com.xbfinance.portal.service.impl;

import com.xbfinance.portal.dao.PortalApplyMapper;
import com.xbfinance.portal.pojo.po.FormData;
import com.xbfinance.portal.service.PortalApplyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
@Service
public class PortalApplyServiceImpl implements PortalApplyService {
    @Autowired
    private PortalApplyMapper portalApplyDao;
    private Logger logger= LoggerFactory.getLogger(this.getClass());
    @Override
    public void insertItem(FormData p) {
        FormData formData=new FormData();
        formData.setAddtime(new Date().toString());

        try {
            portalApplyDao.insert(p);
        }catch (Exception e){
            logger.error(e.getMessage());
            e.printStackTrace();
        }
    }
}
